'''
Created on Aug 25, 2011

@author: david
'''

from pspy.gae.actiondomain import PspyAction

class Doit(PspyAction):
    """
    Default Action 
    spawns index.gen
    """
    def execute(self): 
        from app.Ranger.model import Dealer
        
        d = Dealer.all().filter("did =","D0").get()
        d.buyit_addr = "david@synergies4u.com"
        d.buyit_phone = "804.347.1775"
        d.put()
        
        req = self.request
        req.setResponsePage("/Ranger/Index.gen")
        return req.getResponse()
        
    def sess_check(self):
        return True